/*
 * @Description: 
 * @Date: 2021-11-02 11:45:02
 * @LastEditTime: 2021-11-03 15:02:20
 */
import { createRouter, createWebHashHistory } from "vue-router";
import Home from "../Home.vue";
import My from "../views/my/index.vue";
import Main from "../views/main/index.vue"
import history from "../views/history/index.vue"
import journalism from "../views/journalism/index.vue"
import VR from "../views/vr/index.vue"
const routes = [
    {
        path: '/',
        redirect: '/home',
    },
    {
        path: '/home',
        name: 'Home',
        component: Home,
        // redirect:'/main',
        children: [
            {
                path: 'main',
                name: 'main',
                meta: {
                    title: '首页'
                },
                component: Main
            },

        ]
    },
    {
        path: '/my',
        name: "my",
        component: My
    },
    {
        path: '/home/history',
        name: "history",
        component: history
    },
    {
        path: '/home/journalism',
        name: "journalism",
        component: journalism
    },
    {
        path: '/home/VR',
        name: "VR",
        component: VR
    }

]
const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router